package com.dreamthen.service.impl;

import com.dreamthen.service.IGamePlayer;

/***
 * @Author zengms
 * @Date 2023-10-16 21:35:31
 */
public class GamePlayer implements IGamePlayer {
    // 玩家名称
    private String name="";

    public GamePlayer(String name) {
        this.name = name;
    }

    // 登录了游戏
    public void start(){
        System.out.println("登录游戏...");
        System.out.println(name+"开始了游戏");
    }
    // 打怪
    public void play()
    {
        System.out.println(name+"被玩家击杀了");
    }
}
